<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>day5</title>
</head>
<body>
    <h3>day5</h3>
    <canvas width="320" height="240"></canvas>
</body>
<script type="text/javascript">
var c=document.getElementsByTagName('canvas')[0];
var cxt=c.getContext("2d");
cxt.fillStyle="#FF0000";
cxt.fillRect(0,0,150,75);
</script>
</html>